package com.cy.law.db.dao;

import com.cy.law.db.entity.Unit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UnitDao extends JpaRepository<Unit, Integer> {
    @Query("select unitName from Unit where unitId = ?1")
    String findUnitNameById(int id);
}
